C program to count even and odd elements in array with logical description